﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ent;
using Travel.Bll;

namespace Travel.MVC.Controllers
{
    public class Default1Controller : ControllerBase
    {
        UserInfoBll UserBll = new UserInfoBll();

        //
        // GET: /Default1/
        public ActionResult aaa()
        {
            UserBll.AddUserInfo(new UserInfo() { UserNmae = "aaa", Pwd = "111", Sex = "男" });
            return View();
        }

        public ActionResult bbb()
        {
            TryUpdateModel
            UserBll.SetUserInfo(new UserInfo() { Id = 1, UserNmae = "bbb", Pwd = "222", Sex = "女" });
            return View();
        }
    }
}
